import instance from '@/utils/request'

// 获取联想建议（自动补全）
export const getSearchSuggestion = v => {
  return instance.get('/app/v1_0/suggestion', { params: { q: v } })
}

// 获取搜索结果
export const getSearchResults = data => {
  return instance.get('/app/v1_0/search', { params: data })
}
